package com.basic.modules.ykf.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.basic.common.annotation.DictParam;
import com.basic.common.validator.group.AddGroup;
import com.basic.common.validator.group.UpdateGroup;
import com.basic.modules.sys.entity.SysUserEntity;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 用户分数
 *
 * @author maoheng
 * @email 15738859597@163.com
 * @date 2024-05-13 15:55:57
 */
@Data
@TableName("ykf_cus_ser_score")
public class YkfCusSerScoreEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 *
	 */
	@TableId
	private Long scoreId;
	/**
	 * 用户ID
	 */
	@NotNull(message="请选择客服", groups = AddGroup.class)
	private Long userId;
	/**
	 * 月份
	 */
	@NotNull(message="请选择月份", groups = AddGroup.class)
	@JsonFormat(pattern = "yyyy-MM")
	@DateTimeFormat(pattern = "yyyy-MM")
	private Date month;
	/**
	 * 分数
	 */
	@NotNull(message="请录入分数", groups = AddGroup.class)
	private BigDecimal score;
	/**
	 * 创建者ID
	 */
	@TableField(fill = FieldFill.INSERT)
	private Long createUserId;
	/**
	 * 创建人
	 */
	@DictParam(field = "createUserId", targetField = "createUserName", dictType = "flowerName")
	@TableField(fill = FieldFill.INSERT)
	private String createUserName;
	/**
	 * 创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
	private Date createTime;
}
